<template>
    <!-- :tab-list="tabList"
    :active-tab-key="titleKey"
    @tabChange="key => onTabChange(key)" -->
  <a-card
    :bordered="false"
    class="br-10"
  >
    <UserList v-if="titleKey === 'userList'" />
    <!-- <DeptList v-if="titleKey === 'deptList'"/> -->
  </a-card>
</template>

<script>
import UserList from '../UserList';
import DeptList from '../DeptList';

export default {
  components: {
    UserList,
    DeptList
  },
  data() {
    return {
      // tabList: [
      //   {
      //     key: 'userList',
      //     tab: '管理员列表'
      //   },
      //   {
      //     key: 'deptList',
      //     tab: '部门管理'
      //   }
      // ],
      titleKey: 'userList'
    }
  },
  methods: {
    // onTabChange(key) {
    //   this.titleKey = key
    // }
  }
}
</script>

<style lang="less" scoped></style>
